EoP261. A numerical technique for analysis of arbitrarily shaped inhomogeneous optical waveguides