Probability tree based passenger flow prediction and its application to the Beijing subway system