Sort Array From Given Index In Java