Dictionary maker for testing REAR algos