added matrix oprations: rot90, fliplr, flipud, and repmat