Lattice Multiplication(Rectangel Multiplication) implemented with C++ & Template