An applet that computes the k-th smallest element of an array