Sorting and searching in the presence of memory faults (without redundancy)