added implementation of prime factors kata
making internal function tail recursive an using better scalatest's matchers