Change search(int[]) to search(int)