Added PROFILE option to Makefile. Added PERF option (to be used with DEBUG=0) to enable gcc optimization