Searching in cube