combinations func for week6 assignment