where did captain james cook study at?