Added a maximum difference method (checking subsequences of 3)