implemented mkgaussrowexchange