add the implementation of Prim and alter the readme