A c++ engine for calculation of fair value allocations