Implemented a binary search & insert to keep the graph vector sorted while adding new nodes