addded diameter and maximum width calculation for binary tree