Refactor resampling routing out of component routines.  Extend resampling routine to eliminate degenerate columns.  Add wrapper routine for bootstrapping code