Bug fix regarding merging.

It would create the wrong links when the only 2 free blocks get merged into the only free block (e.g. + a 1024, + b 512, + c 256, -c).
The merging code probably needs a rework.