Added solution (BT using pointers)