boundedges function added
merge