Improved version parsing and comparing, added algorithms'
documentation, simplified testing cases.