added cache aligning, solved third assignment