Haskell version of fragment assembly without physical potentials, but only with distance restraints and geometric checks