Efficient whole genome haplotyping and single molecule phasing with barcode-linked reads