rewrite sobel
rewrite prewitt
xxflate: add 9/10 bit proc

also, various cosmetics
Minimum/Maximum: fix up shift