Changed type  of variable length_of_genome form int to size_t.
Also created a new function build_reference_sequence_and_truncate that truncates the reference sequence with '\0'
 and does not allow a reference sequence to be created if the sequence length is bigger than the memory allocated for it