A General Inheritance Algorithm for Calculating of Arbitrary Moving Samples During Microwave Heating