Patience sorting: pile-based stable method linked to longest increasing subsequence

Class:
Algorithm