Complete SearchI.java and new SearchII.java (Time Limit Exceeded)