movies network and binary tree height