Replaced kernels for add_row and add_col by a dot product call, improving efficiency (?)