Thinking about a different aproach to the stack sort...