Improved Memory Utilization in Greedy Loop Matching