'Longest Increasing Sub-Seq' reimplemented