Added binary trees custom implementation.