Split algorithm template and test cases