Fixes insert function
Builds MessageTree from [LogMessage] using foldr
Adds inOrder that returns [LogMessage] sorted by timestamp