Symplectic and orthogonal Robinson–Schensted algorithms