Improved my program for fibonacci series