Fixed java sorting calls, added built-in sort as benchmark