add dimension check
add get row and get column methods