Java Implementation for different sort algorithms (bucket, count)