Thread: A Logic-Based Data Organization Paradigm for How-To Question Answering with Retrieval Augmented Generation