sort
insertion sort
insertion sort 1
sort and find LCM
find LCM from GCD