Cheapest way to buy Tesla stock: Mathematical Analysis and Cost Optimization