added definition of elapsed for time measurement
added -O0 flag to makefile