Algorithms practices implemented in Java