changed to use an object literal (essentially a hash table) to store line numbers for inserts, deletes, etc.