Add selection sort - java