From Brownian Motion to Schrödinger&#39;s Equation