moved implementation of getRows and getCols to controlUtil.cpp