Software that saves Microsoft 'millions' in energy