Added conditions to which pixels to remove
Added removeFalseEdges function.
Uses traversal and getNeighbors function to get group of edges