Resources Allocation Optimization in Distributed and Heterogeneous Computing Environmentsстатья