added new constructor to MPS
canonicalize programmed