added comments to non recursive quick sort