a bit faster... still not very fast (problem 10)