Added the incrementArray function needed by FEAST.