Unload values of heights matrix into a file