Updated cabal file with -O2 options

Added -O2 to the GHC build options for the library and the benchmarks.