Hi Indalo--
You're right -- it gets much tougher beyond 3x3.  It was tedious, but we scaled up the algorithm to sort sets and subsets until 15x15 size kernels.  Do you need bigger, or were you just asking?  Here's more documentation: http://wiki.accelereyes.com/wiki/index.php/MEDFILT2