added finite-difference tests for gradient

added "very sgd" implementation (just for fun).