added linking flags to the makefile -lm for 'pow'