fixed address printing by using actual array instead of pointer, sorting almost working