A C++ static multi-dimentional range calculation library