function rankmodified{T<:Real}(a::Array{T,1}) indexin(a, a) end