function add_flow modified to support OFPFF_CHECK_OVERLAP flag.