Hall sensor array for measuring displacement of a 2D magnet array