Check that 'data' argument is formatted correctly
validate_data(data)
data
data passed by the user
data as a matrix