In class haplotype, change variables to shared_ptr