Use Matrix instead of Array because we assume 2D