Change a lot to supply arbitrary input for cell size.

Signed-off-by: spacewander <spacewanderlzx@gmail.com>
Merge pull request #2 from spacewander/master

Change a lot to supply arbitrary input for cell size.