A small correction on my previous note... double neighborhood[NBRHT][NBRWDTH]; double onerow[MAXNCOLS]; should be double neighborhood[NLABELS][NBRHT][NBRWDTH]; double onerow[NLABELS][MAXNCOLS]; Russ <Smith at nrl-aic> Navy Center for Applied Research in Artificial Intelligence