Text this: An Efficient Algorithm for Decomposition of Partially Ordered Sets