Change file format to unix
Fix bug where keys with same value doesn't get sorted in list
Enable compiler optimization