Added Transpose class, #616
Updated syntax in NMPC example