RedPrairie buying JDA Software for $1.9 billion