Compute the hipster rank of a route from A to B