binary PLY writing