Added a 5th algoritm