Title: Development of a versatile algorithm for optimization of radiation therapy