add function for writing a mesh to binary STL
0.3.1
forgot to write number of triangles
0.3.2
fix sizes of datatypes