Modes of an array of dielectric waveguides