Testing new median-average algorithm