(add) write to file
(error) return an empty matrix
(fix) gitidnore for result.txt