Determination of Protein Functional Groups Using the Bond Energy Algorithm