Fixed buffer overflow in save_mts() and save_xyz(). Turned on optimization in cpu makefile.
Fixed buffer overflow in save_mts() and save_xyz() of gpu version.