bitrate: add bitrate statistics library