added ntriples writer

Added ntriples writer.
I think it may be easier if I just implement the changes and make a pull request on @antonkulaga 's PR branch. Describing in words the changes is more work than just doing it. Is that ok @antonkulaga ?