Java: adding multisort version1