Add optimization flags for compilation

Added -O6 and -fomit-frame-pointer