Changed name of is_same struct to mult_wrapper and using arrays rather than vectors.