Adds generalize MG class. It can now handle any linear 1-D BVP
expressible as Au = f.