A novel approach to multiple constant multiplication using minimum spanning trees