amending mpower(a,b) to work with a complex matrix and b real scalar. logm is still needed for the case b complex