Added time tests
Fixed memory leak in multiplication