untested sobelY function implementation