Tree-level unitarity constraints in the most general two Higgs doublet model