#7 implemented algorithm query method that retrieves algorithms of certain type