Part 3 is Complete

alloc now:
    check if the address pointed by pagedir is valid an allocates a frame for it if not.
    check if address is multiple of frame size.
free now:
    clean the valid flags