Add the test cases and the algorithms