l4p3: StackSort.java
for reference