Create maximal-rectangle.cpp

reused code in Largest Rectangle in Histogram