Added full implementation of insert.  Completely untested, because I like to live dangerously.