Removing yield functionality from greedy calculation. Print to happen inside greedy. Moved timing code directly into greedy