Unsteady flow and heat transfer of three immiscible fluids