added additional optimization for bound vectors and added tests