cleanup allocs and fix bug in quick string sort