using pattern matching
 fibonacci tail recursive