Your asking a whole lot in a small question. BST's are widely documented all over the internet and implementations are everywhere.
It does more sounds like a homework question than an actual lack of knowledge, which is why you either have to provide more insight on your idea or read Wikipedia.