changes to PHP - LongestIncreasingSeq task