Make processBuffer a static class method.

No bad effects on runtime (profiler shows it to be 10% faster?!). Also,
simplify method signature to not require passing the buffer size. I'm
including the 32-bit binary mex file since it is very small. Will add
the 64-bit version in a separate commit.

--BRJ