Demonstration of various search algorithms in Java