weighted grade functionality

- weights allowed: 1 to 10
- fixed some file extensions for hackerearth language support
- fixed db related bugs: floats instead of ints for grade