2D TLM code for a waveguides