In-place solution for nulling rows/cols of an array.