Otimizing edges insertion on vertex

Changed a vector to a deque, so pointers keeps valid