Implement 52kcy keygen, need to fix a bug still