Adding a test for unique_mapping.
make DEBUG driver skip graceful crash routine.
Rewrite unique_mapping, no more memory leak.
Merge pull request #107 from sunyc/master

Rewrite unique_mapping , fix the annoying memory leak.