The computation of the operator algebra in non-diagonal conformal field theories