Fixed bug in apqueue
Rewrite of heuristic inlining: Faster and smaller code size