added repmat operation