find median algorithm has been added