doBoot function

Function to run a bootstrap iteration