add feature [swap,bubble,selection]_sort and reverse , found an example of readline library