Interaction effects in switching of a two dimensional array of small particles