algorithm efficiency and sorting techniques 241158