containsValue in Bintree and array