Uniform memory allocation fixed.
Copyright reversed.
Merge pull request #582 from tkoziara/master

Uniform memory allocation in sort example is fixed.