add init solution for construct bt from pre&in order traversal.