add const operator[] for Solution and Point classes