add <algorithm> to MTRecordList.cpp

should fix bug: http://pastebin.com/3v8CYK74

(untested).