A pattern ordering algorithm for reducing the size of fault dictionaries