Add updated sobel kernel that keeps track of direction
Add a fix for the Sobel kernel directional code so that the theta buffer doesn't clobber output buffer