vectorized slow em with masked observations