Function to forwardfill %nan values in data matrix
[data_filled]=forwardfill(data);
n x m matrix of numeric data, with matrix of column vectors, where %nan values of input matrix have been forwardfilled
n x m matrix of numeric data, with matrix of column vectors