Cleanup, changed queue logic: element are now stored from low to high