clean up the algo class
made a copy of the algo class for implement and test the creating of the unittests
added second unittests with different way