commonAlgos