Find all combination of r elements in an array.