added a method for adding an algorithm to the hashmap algorithms