Added some tools for sampling of data vectors and storing them to files