devianceboot function

Calculates the bootsrap deviances