T([8,2,7,3,10], 15) does indeed return (2,3,10)
But it's too slow to use for large problems
Same problem as fibo
But:
use Memoize; memoize 'T';
Now it's efficient!