Implemented arc merging for basic block