Add leaf keyword to brute and greedy
brute does not expand tuple