Computer modeling of molecular structures