adding some simple univariate/legendre stuff
made d/i work and a test for it