Added basic sorting algorithms (in Java)