created passage term match algorithm

looks like it is working