First attempt at creating portable statistics library