maximum non- decreasing subsequnce