A Linear Algorithm for Radio k-Coloring Powers of Paths Having Small Diameter