LaTex references tidying

- Czech prettyref
- use varioref package
Tidying algorithms to use algorithm2e package
Macro BPTree