Create linear-oscillator.cc

Actually implemented the linear oscillator model.