Add SSA mat and vec routine