Implementing DWT2D HH bit to bit