Add script to deploy Hadoop automatically and a new map implementation to support customized running time.