Priority intersections and roundabouts capacity function