Chain closure: a problem in molecular CAD