trying to speed up problem 5 with type hinting; adding timing output to java version too
problem 6 done
problem 5 with fast solution from stackoverflow