partition_tiles function

Partition the study area into rectangular tiles