Serial solver and test cases finished