If i am not wrong A represent the rows and B represent the columns, so lets use more accurate variable names for those parameters