changed search_max_int() algorithm to just search on each axis 3 times