refactoring inject_zeros because the previous code was a mess
refactoring according to pr comments
Merge pull request #1710 from stormpython/feature/refactor_inject_zeros

Refactored inject_zeros component in Vislib