Removed incorrect algorithms. Some refactoring. Added few data
structures and algorithms.