Demo sort algorithm in Java for data sets of a known range of values