Changed 2 Dimensional cell array to pseudo 2 dimensional