Implemented codel counter and edge finder for current block.