A simple implementation of a 2d matrix