created _build_tree() method

less code, and more flexibility in a subclass
Merge pull request #16 from tokuhirom/refactorparsehtml

created _build_tree() method