median sort project with verilog