The Influence of Dimensionality on the Charge Density Wave Transition and Its Application on Mid-infrared Photodetection — arXiv2