Added data manipulation functionality

Added the code to perform data manipulation, need to refactor code and
add test algorithms.