Tools and algorithms for data wrangling