LeastDifference.java for finding least difference in an array