Implement insert, delete and swap functions.
Do some little modifies.