added signature for binary trees