Implemented reddit algorithm