Changed the makefile to add -lm for compiling