Added minspanTree and knapsack