}//若当前位置已有数值,则索引指向下一个位置,直到键值对插入完成

        private void Resize(int cap)
        {
            LinearProbingHashST <Key, Value> t = new LinearProbingHashST <Key, Value>(cap);

            for (int i = 0; i < M; i++)
            {
                if (keys[i] != null)
                {
                    t.Put(keys[i], vals[i]);
                }
            }
            keys = t.keys;
            vals = t.vals;
            M    = t.M;
        }
 public SparseVector(int m)
 {
     st = new LinearProbingHashST <Int32, Double>(m);
 }