Add sort insert delete and inverse function