Implemented insert(key,val) and insert(n,key,val) interfaces.