Everything should be ok now. Lot of bugfixes. The problem with zeroing the last tuple whn changing tuple with same pref stays. It's an algo problem. Zeroing=less solutions, not zeroing=loop.