adds weighted_moving_average method

This PR does not include the wma alias.  Everything else is the same.