Order Selection and Inference with Long Memory Dependent Data