Sort Array Java Without Using Sort Method