add SparseLegendre2DPol and change typedeg and propagate to the rest of the code