add path_sum and majority elem

path sum
majority elem