DepthStats: lower memory usage by splitting functions
update readme