added own matlab function for computing mi
added faster method for computing mi