Changed computation of HAAR features

based on the original implementation of MIL