Implement another very very poor and slow stack sorting algorithm