I prayed all the obligatory prayers in congregation, but after finishing the `Isha prayer, I remembered that I had forgotten to pray Dhuhr. What should I do, and is my prayer invalid?
Your prayers are valid, but you must make up the Dhuhr prayer as soon as you remember it, based on the saying of the Prophet (peace be upon him): "Whoever forgets a prayer must pray it as soon as they remember it; there is no expiation for it except this." [Muslim]. And Allah knows best
Is it permissible for one to masturbate in order not to commit fornication?
This is called committing the milder of the two evils such as eating a carcass in fear of death, and this happens when committing fornication is very likely to occur.
Is it permissible for a person, who vowed to offer two Rak`ahs (units of prayer) everyday for Allah`s sake, to do so after the Fajr (dawn) prayer?
In principle, a vow should be fulfilled as it was originally intended, and if its time lapses then, it should be fulfilled at any time because of the vow. Therefore, it is permissible to offer them after the Fajr prayer, and there is no prohibition in doing so. However, it is preferable for him to offer these two Rak`ahs at some other time to avoid the disagreement amongst the scholars in this regard.
I made a vow "If the Israeli troops retreated out of Gaza strip I will buy a cake from a certain bakery" and it happened. Am I obliged to buy from the same bakery?
You are obliged to buy from the same bakery. And Allah Knows Best.