Simple collections of basic algorithms in Java