Combinational Logic Optimization for a Hardware based HEVC Transform