Changed bootstrap sampling to multinomial sampling