Removed some redundant typedefs.
Removed the redundant parameters in main.
Added cotire to speed up compilation. Remember to re-run CMake.