ProtoReasoning: Prototypes as the Foundation for Generalizable Reasoning in LLMs