Bicycle headway modeling and its applications