EXACT MATCHING USING ELEMENTARY TECHNIQUES