Segmentation Fault Fixed. The result is still not correct.