add documentation files to doc/ folder
add documentation target in build.xml
templating of more basic functions: k-select and merge sort