Fix DoOuterProduct (bug in bounds of for loop)