Some basic Java examples like GCD, QuickSort, etc