insertion and merge sorts added on Java language