Add mex file for inverse transform