Add overload for const member functions

This is a solution for issue #31