Design of Optimized Radix-2 and Radix-4 Butterflies