Removed used imports.
Added optimization flags to Cython compiler.