Updating sample encoding script.

Removing verbose debugging output and specifically saving the potential H matrix candidates (as they are identified and updated) to be used after the loop.