pointer sorted program added