Implementation of the bootstrap