utils: new Memoise

* Removes unnecesary duplicated memoize.

* Adds InstanceMethodMemoise for memoising instance methods.

Signed-off-by: Mateusz Susik <mateuszsusik@gmail.com>
@MSusik can you please change it to "memoize" everywhere? Thanks