array optimization test