3D Reconstruction of Coronal Loops by the Principal Component Analysis