changed to boost references
changed to boost references
added note about lack of efficiency