Base: Add linear interpolator

Thanks to @zst123