Added support of each_col([I]) and each_row([I])