Patience diff and longest increasing subsequence
https://github.com/chessai/patience