Add quick sort java code