Testing the following algorithms