Add node function implemented to get complete binary tree