Fixed serial Sobel bug and changed Mat object addressing.

Added changes to serial version of NMS kernel to address Mat objects in using Mat.data[pos] in the hopes that it will increase performance. Also added a fix to the serial Sobel kernel. @smskelley still needs to adjust the two formulas to use the new Mat.data[pos] addressing.