changed memory allocation in matcher (#27)