A simple grid class in c++ to use with helpful functions