Generate Numpy 2d Array From A 1d Array