Generalized Random Walks, Their Trees, and the Transformation Method of Option Pricing