Molecular Builder in Java