added partially complete br-search implementation