Java Implementation of Search Algorithms from CS 240 Class