Verify with independent arrays.
Uncomment in|out Heads|Next generation.
Use linked-list for out.
Replace in. (work for sample, but not work for doublelink)