HCF function

Finds hcf of any set of positive integers