division beginning to be implemented, still fails but valgrind seems to know the reason why