Add longest increasing subsquence