A Finite State Machine Approach To Cluster Identification Using The Hoshen-Kopelman Algorithm