Write a function that takes two numbers, which represents number of rows and columns for a two dimensional array, and fills the array with a sequence of numbers in the spiral fashion.