A subgraph isomorphism algorithm and its application to biochemical data