Added helper function ExtractBounds

ExtractBounds() returns the extremities of the axes.