memory manager should be able to add records and keep them sorted. Needs testing though.