Implementation of multiple sort operations in Java (Using a Linked List)