bug fixed

1.insert()
complete function sort() and fix some bugs