Sorting Algorithm => added int partion(A, p, r) with support for all even elements