added -O3 cflag to speed up execution time marginally