An Algorithm for Determining the Chromatic Number of a Finite Graph