Create commonAlgorithms.java