Analysis and Synthesis of Sequential Circuits using Basic Flip Flops