Implemented two pass, as per #8

Hi Eddie,

I've implemented two pass parsing, as per #8
Please, consider merging it

I've changed the interface  of HprofParser a bit, please comment if I should try to maintain the previous version for backwards compatibility