add code to read/write data in MapQTL format

Finally, here is the code. It's not particularly efficient, but it should work. I checked on simulated data that I obtain the same results (LOD scores) with R/qtl and MapQTL.