Added code for automated testing and profiling.
Performance results.