added loop scripts for computing dot products with bootstrap