Algorithms and computer science exercises in Java