Fixed the Hopcroft Algorithm.

Made changes to align with pull request from earlier.