very naive solution to calculate the consenus seq