Added sortedcollection class and replay utilities file.