Stack sorter algorithm done