Tutorial for sorting solutions in java