Merge pull request #163 from kd-11/master

mem_alloc: Optimize allocation conflict checking