add first-draft of libraries for inverse-variance filtering.