Adds MEX file for 2d potential