Working example with number of elements 2^n , n being even integer