Small and medium-sized stocks performed best on AEX