Added Piecewise support for "compose", which will be the foundation for
Min() and Max() functions.