Faster calculations for K>2
Added makefile