Add COLUMNS and ROWS constants for convenience.
Add debug option

When -d is specified, the number of searched nodes and used time will be
printed.
The number of nodes is no longer mentioned in the tree output file.