https://github.com/milkha/Splines_in_Stan/blob/master/splines_in_stan.pdf