renamed algorithms to algorithm