Fix small memory leak in read_genome()
Fix various memory leaks
Fix single-end mapping