added comparison of bf and tree matrices