Trying to Implement tree like with C for understanding C