rearranged calculation order to free up memory:
instead of calculating all the lambda tables first and then using them, calculate one at a time, use it, and then free it.
space improvement from O(n^2*d*m) to O(n^2*d)
Merge branch 'master' of https://github.com/CS598TeamAwesome/Project1-ColorTextureShape.git