Subșir crescător maximal în n^2