Print checkerboard pattern of nxn using numpy