Haxe port of Super fast AS3 implementation of rectangle packing algorithm  http://villekoskela.org