edge finding now more efficient (cloning mat, no per-pixel iteration) AND doesn't double all edges bidirectionally