edit: optimizations by randomness for Maximum Likelihood filtering rule

Signed-off-by: Stephen L. <lrq3000@gmail.com>