Algorithms Written in Java