Ferrolho: added D - Base Arithmetic code (warning: getting WA)