added isTree, isSparse and minor changes to documentation in operations.hpp