dozens of houses are twisted beyond repair pyrrhus held him in high regard in place algorithm updates input sequence only through replacement or swapping of elements