A Source Classification Algorithm For Astronomical X-Ray Imagery Of Stellar Clusters