Algebraic Coupling Of 2D And 3D Shallow Water Finite Element Models