Remove redundant portion specification

This is already covered by OpenMP when the chunk size
is left unspecified.
Additionally, the modulo function was fixed - it now takes
thread count as an argument for modulo operator.
Fix data partitioning