Implements some basic edge detection algorithms