Add benchmark library.
Refactor dex for speed.