Finished problem 6 for my purposes.

Couldn't get alternative operator function for using brackets with a
vector e.g. vector[x] would return the x position in the vector.  But
C++ can with this one.