Guidelines for enhancing data locality in selected machine learning algorithms