Two-dimensional object recognition on parallel machines