Work with data points as a map instead of vector.