search_max_int() working, added some comments