Catalan Numbers & Quick Sort