added maven support + generic type instead of int for pandigital stream function