W-SPSA Algorithm