In order to figure what is wrong I would probably have to do it by hand or wth ? Here are my results after compilation [1, 2, 3, 4, 5, 6, 7, 8, 9, 153, 370, 371, 407] memory 256 time = 0 [1, 2, 3, 4, 5, 6, 7, 8, 9, 153, 370, 371, 407, 1634, 8208, 9474, 54748, 92727, 93084, 548834] memory 4458 time = 0