An Optimal Parallel Algorithm for a Core of a Tree