Move Edit Distance to package dp
Add ThreadSafeSingleton and StringPool.