func newSparseVector(values []int) sparseVector {
	v := make(sparseVector, len(values))

	for i := 0; i < len(values); i++ {
		v[i] = &entry{i, values[i]}
	}

	return v
}
// newSparseVector creates a new sparse vector with the initial values of the dense int slice given to it
newSparseVector creates a new sparse vector with the initial values of the dense int slice given to it
// newSparseVector creates a new sparse vector with the initial values of the dense int slice given to it
func newSparseVector(values []int) sparseVector {
	v := make(sparseVector, len(values))
	for i := 0; i < len(values); i++ {
		v[i] = &entry{i, values[i]}
	}
	return v
}
func newSparseVector ( values [ ] int ) sparseVector { v := make ( sparseVector , len ( values ) ) for i := 0 ; i < len ( values ) ; i ++ { v [ i ] = & entry { i , values [ i ] } } return v }
newSparseVector creates a new sparse vector with the initial values of the dense int slice given to it
newSparseVector creates a new sparse vector with the initial values of the dense int slice given to it