Comparison of three-dimensional structures of macromolecules