started implemented halving and quartering

still problems with the implementation. needs work and refactoring