utils: new Memoise

* Removes unnecesary duplicated memoize.

* Adds InstanceMethodMemoise for memoising instance methods.

Signed-off-by: Mateusz Susik <mateuszsusik@gmail.com>
Memoize IMO