Update pattern.new.md

update pattern scoring function and mongo structure