Fixed buffer overrun in HessianFD.  Must move to C#