Image recognition, identification and classification algorithms in cast alloys microstructure analysis