added diff app with Patience algorithm