added read_data_from_file

Accepts a filename of a .txt file and a vector to store the data points
into. Returns 0 on success and 1 on failure.