C++ library for depth functions