added optimization flag -O2 to Makefile