to find unique combination from a list
some more updates on lists
improved totient function