Started working on bottstrap methods.

Added general interfaces and classes for residual calculations. Added classes for ODP bootstrap calculations.