Peformance enhancement: use morder function (from bigmemory package) instead of order to calculate asave matrix.