implemented a few bstreaps