Add floyd and PersistentStack, modify Cnk, Compressor and template