Add document of memory_of_symbol
Fix typo
Memory_of_symbol is already in acending order; pull out helper function