Add stern brocot function
Export collect function