fixed a bug in increment and got rid of try: except to improve speed
code to make sure that exactly n edges are added to the ring