Fix compare routes

When using bsearch, need to pass in a pointer to the object.
It returns a pointer to the object or NULL
Need to cast the pointer to the object