Fixed makefile. The algorithm should be mostly functional now.