Special functions of bounded variation in doubling metric measure spaces