A Multi-step fast median algorithm for 2-D data of various word-length