Classic problems and algorithms implementations in Java