Algos written in Java