parallel version of insert(k)