solve fredholm eq + voltera type

write function to solve to Fredholm equations and of voltera type