Remove buggy integer casts from calcIterations and use std::floor implementation instead. This changes the resulting values slightly – to the better. However, it causes reference tests to fail. This must be considered in #46 (closed).
Closes #45 (closed)
This will create a new commit in order to revert the existing changes.