Recreated Partial Match Code

Fixed a bug where firstTwoHolder and lastTwoHolder wouldn't revert back
on failure. Now causes infinite loop. Will implement while loop to make
sure partial key is created before continuing to use partial key.