added recursive solution
changed .pyc