Luka Modric believes he played the best football of his career under sacked coach Carlo Ancelotti at Real Madrid.