Sorry we forgot the C Source Code

(This is the source code that was used to generate the mex function)