assignment 3

caching the inverse
Revert "assignment 3"

This reverts commit 617fcabf1908980e5f32bd7154d64bce66b25950.
Commit2

this time correct name : assignment 2 - caching the inverse