Changed delete[] to free() in insert. Join selection theoretically implemented but untested. snl in progress.