Converts XYZ files to Z-matrix