Dynamics of Phase Separation and Pattern Formation