Rpaired the seeds' boundary conditon by introducing MAP_MAX_ROWS and sam...

...e for the columns.