Problem 8_b & Comparative

A naive solution to problem8 and a comparation between them