EPICURE code for fitting latency models using B-splines