upate fst calcuate function
rework on pairwise fst calculation