Runs to conclusion but is missing the unique 7,10 and 12 checks
Fixed bug in chk_unique which was causing a side effect by not copying the array before sorting it.
Backup commit to remote. Code incomplete.