add code for more precise arbtirage math (WiP)

Signed-off-by: Victor Shcherbinin <victorshch@gmail.com>