AMP Merge Sort fix for 65535 tile limit issue + small optimization in Me...

...rge Sort for AMP