interleaving and rectgula histogram